import CommonApi from './common'

class MessageApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/message'
    }
    list(data) {
        const path = this.resolvePath('/page/list')
        return this.post(path, data)
    }
    read(data) {
        const path = this.resolvePath('/read')
        return this.post(path, data)
    }
    statistics() {
        const path = this.resolvePath('/statistics')
        return this.post(path)
    }
}

export default MessageApi
